﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NetCard.Models.Project>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	NetCard: Изменение проекта
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Изменить проект</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Параметры</legend>
                       
            <div class="editor-label">
                <b><%= Html.Label("Название") %></b>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.name) %>
                <%= Html.ValidationMessageFor(model => model.name) %>
            </div>
            
            <div class="editor-label">
                <b><%= Html.Label("Время проверки") %></b>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.timeout) %>
                <%= Html.ValidationMessageFor(model => model.timeout) %>
            </div>
            
            <div class="editor-label">
                <b><%= Html.Label("Время жизни пакета") %></b>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ttl) %>
                <%= Html.ValidationMessageFor(model => model.ttl) %>
            </div>
            
            <div class="editor-label">
                <b><%= Html.Label("Размер пакета") %></b>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.size) %>
                <%= Html.ValidationMessageFor(model => model.size) %>
            </div>
            
            <div class="editor-label">
                <b><%= Html.Label("Интервал проверки") %></b>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.testInterval) %>
                <%= Html.ValidationMessageFor(model => model.testInterval) %>
            </div>
            
            <div class="editor-field">
                <%= Html.HiddenFor(model => model.id) %>
                <%= Html.ValidationMessageFor(model => model.id) %>
            </div>
            
            <div class="editor-field">
                <%= Html.HiddenFor(model => model.userLogin) %>
                <%= Html.ValidationMessageFor(model => model.userLogin) %>
            </div>                        
            
            <p>
                <input type="submit" value="Сохранить изменения" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Назад к списку проектов", "ProjectIndex") %>
    </div>

</asp:Content>

